package tbdp.tool.config;

import org.apache.commons.lang.StringUtils;

/**
 * @author xbkaishui
 * @version $Id: ReaderConfig.java, v 0.1 2017-06-17 下午3:48 xbkaishui Exp $$
 */
public class ReaderConfig extends AbstractConfig {

    private String tableName;
    private String schema;

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSchema() {
        return schema;
    }

    public void setSchema(String schema) {
        this.schema = schema;
    }

    public String getTableWithSchema() {
        if (StringUtils.isNotEmpty(schema)) {
            return schema + ":" + tableName;
        }
        return tableName;
    }
}
